s = float(input())
if int(s) != s:
    s = round(s + 0.5)
if s <= 3:
    m = 10
else:
    m = int((s-3)*2) + 10
print(m)
